<!DOCTYPE html>
<html lang="en">
<head>
    <!--  通过线上下载bootstrap的 -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">

    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <script type="text/javascript">
        function login(){
            alert("登录");
        }
    </script>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="button">
        <button class="btn btn-default" type="submit">Button</button>
        <input class="btn btn-danger" type="button" value="Input">
        <input class="btn btn-success" type="submit" value="Submit">

        <button type="button" class="btn btn-success">（成功）Success</button>

        <button type="button" class="btn btn-info" id="login" onclick="login()">登录</button>
    </div>

    <div>
        <!-- row 规定当前div 占一整行-->
        <div class="row">
            <!-- 每一行分为 12份  col-md-1 只占横向 1份   -->
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
            <div class="col-md-1">.col-md-1</div>
        </div>

        <div class="row">
            <!--横向栈8份-->
            <div class="col-md-8">.col-md-8</div>
            <!--横向栈4份-->
            <div class="col-md-4">.col-md-4</div>
        </div>

        <div class="row">
            <div class="col-md-4">.col-md-4</div>
            <div class="col-md-4">.col-md-4</div>
            <div class="col-md-4">.col-md-4</div>
        </div>
        <div class="row">
            <!-- 再 md 以上分辨变率  66分 -->
            <!--  在 sm 到-md 分辨率  48分 -->
            <!--小于  sm分辨率     col-sm-x每个站一行-->
            <div class="col-md-6  col-sm-4">AAA</div>
            <div class="col-md-6  col-sm-8">BBB</div>
        </div>
    </div>

    <div>
        <h1>表单</h1>
        <form>
            <div class="form-group">
                <label for="exampleInputEmail1">Email address</label>
                <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">Password</label>
                <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
            </div>
            <div class="form-group">
                <label for="exampleInputFile">File input</label>
                <input type="file" id="exampleInputFile">
                <p class="help-block">Example block-level help text here.</p>
            </div>
            <div class="checkbox">
                <label>
                    <input type="checkbox"> Check me out
                </label>
            </div>
            <button type="submit" class="btn btn-default">Submit</button>
        </form>
    </div>

    <div>
        <form class="form-horizontal" role="form"  id="form">
            <div class="form-group">
                <label for="loginName" class="col-sm-2 control-label">账户:</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" id="loginName" name="loginName" placeholder="请输入账户">
                </div>
            </div>

            <div class="form-group">
                <label for="loginName" class="col-sm-2 control-label">密码:</label>
                <div class="col-sm-3">
                    <input type="password" class="form-control" id="loginPwd" name="loginPwd" placeholder="请输入密码">
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button type="button" id="btn" class="btn btn-default" onclick="loginManager.login()">登录</button>
                </div>
            </div>

        </form>
    </div>
</body>
</html>